package com.juyu.reader.author.model;

public class Page extends Base{

	private int pageNo;

	private int offset;

	private int limit = 15;

	private String channelNo;

	public int getPageNo() {
		return pageNo;
	}

	public void setPageNo(int pageNo) {
		this.pageNo = pageNo;
	}

	public int getOffset() {
		if (this.getPageNo() >= 1) {
			offset = (this.getPageNo() - 1) * this.getLimit();
		} else {
			offset = 0;
		}
		return offset;
	}

	public void setOffset(int offset) {
		this.offset = offset;
	}

	public int getLimit() {
		return limit;
	}

	public void setLimit(int limit) {
		this.limit = limit;
	}

	public String getChannelNo() {
		return channelNo;
	}

	public void setChannelNo(String channelNo) {
		this.channelNo = channelNo;
	}

}
